﻿using System.Collections.Generic;

namespace My.Ioc.Helpers
{
    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    static class EnumerableExtensions
    {
        public static IList<T> ToList<T>(this IEnumerable<T> parameters)
        {
            Requires.NotNull(parameters, "parameters");
            var list = new List<T>();
            list.AddRange(parameters);
            return list;
        }
    }
}
